package com.itrip.dao.ex;

import com.itrip.dto.OrderListDTO;
import com.itrip.dto.OrderPayDTO;
import com.itrip.vo.order.OrderCountVO;
import com.itrip.vo.order.OrderListVO;
import com.itrip.vo.order.PayStatusVO;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface OrderMapperEX {
    int getCountByUser(Long userId);

    OrderPayDTO getOrderPayByUser(Long userId);

    int updateOrderStatus(PayStatusVO payStatusVO);

    List<OrderListDTO> getOrderListByParams(@Param("orderListVO") OrderListVO orderListVO,@Param("userId") Long userId,@Param("start") int start);

    int getOrderCountByParams(@Param("orderCountVO")OrderCountVO orderCountVO,@Param("userId")Long userId);

    int getOrderStatus(long orderId);

    int updateOrderStatusInvalid(long orderId);
}
